package cn.edu.ctbu.yrx.dao;

import cn.edu.ctbu.yrx.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository extends JpaRepository<User, Integer> {

    void deleteAllByIdInBatch(Iterable<Integer> ids);
    public List<User> findByUsername(String userName);

}
